package cn.cdeden.knowledge.domain.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class PersonalFilesTreeDto {
//    @ApiModelProperty(value = "编号,修改使用")
    private String id;
//    @ApiModelProperty(value = "父亲编号")
    private String parentId;
//    @ApiModelProperty(value = "文件名称" ,required = true)
    @NotNull(message = "缺少必要的参数规则name")
    @NotBlank(message = "文件名称,不能为null，或者只包含空格")
    @NotEmpty(message = "文件名称,不能为null或者长度为0")
    @Pattern(regexp = "^.{0,216}$", message = "文件名称,最长为216个字符")
    @Pattern(regexp = "^[^/\\\\\\:\\*\\?\\\"\\<\\>\\|\\\\]{1,216}$", message = "文件名称,不能用 `\\/:*?\"<>|` 作为文件名称,最长为216位")
    private String folderName;
}
